package org.darkforest.model;

import org.darkforest.common.util.DateUtil;
import org.darkforest.common.util.Page;

import java.math.BigDecimal;

/**
 * Created by pc on 2017/5/4.
 */
public class CareValue extends Page{
    private String receiveName;
    private Integer receiveTime;
    private String receiveGoods;
    private BigDecimal goodsPrice;
    private BigDecimal startPrice;
    private BigDecimal endPrice;
    private Integer senderId;
    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public Integer getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Integer receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getReceiveGoods() {
        return receiveGoods;
    }

    public void setReceiveGoods(String receiveGoods) {
        this.receiveGoods = receiveGoods;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(BigDecimal startPrice) {
        this.startPrice = startPrice;
    }

    public BigDecimal getEndPrice() {
        return endPrice;
    }

    public void setEndPrice(BigDecimal endPrice) {
        this.endPrice = endPrice;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public String getReceiveTimeInfo() {
        if(this.receiveTime!=null){
            String dateinfo = DateUtil.dateToString(DateUtil.toIntDate(this.receiveTime), "YYYY年MM月dd日");
            return dateinfo;
        }else{
            return "";
        }
    }
}
